<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理</title>

    <meta name="decorator" content="kindeditor"/>

    <script type="text/javascript">
        $(function(){
            $("#public").addClass("active");
            $("#public").find("ul li").eq(2).addClass("active");
        })
    </script>
   

</head>

<body>

<s:if test="msg=='success'">
  <script >alert("添加成功")</script>
   </s:if> 
   
   <s:if test="msg=='fail'">
  <script >alert("添加失败，稍后再试")</script>
   </s:if> 
   


<div class="admin">

    <div class="panel">
  <div class="panel-head"><strong>修改关键字回复规则</strong></div>
  <div class="panel-body">
  
<form action="keyword!update1.action" id="form" method="post" enctype="multipart/form-data" >
                
                <div class="form-group">
                    <div class="label"><label for="sitename">标题</label></div>
                    <div class="field">
                    	<input type="text" class="input" id="sitename" name="keyword.title" value="${keyword.title}" size="50" placeholder="请输入标题" data-validate="required:请输入标题" />
                    </div>
                </div>
                
                     <div class="form-group">
                    <div class="label"><label for="sitename">描述</label></div>
                    <div class="field">
                    	<textarea rows="5" class="input" name="keyword.miaoshu"  placeholder="请输入描述" data-validate="required:请输入描述">${keyword.miaoshu}</textarea>
                    </div>
                </div>
                
                   <div class="form-group">
                    <div class="label"><label for="bianma">关键词</label></div>
                    <div class="field">
                    	<input type="text" class="input" id="bianma"  name="keyword.keyword" value="${keyword.keyword}" placeholder="请输入关键词" size="50" data-validate="required:请输入关键词"/>
                    </div>
                </div>
            
                
                
                
                
                
                
                
                <div class="form-group">
                    <div class="label"><label for="logo">封面</label></div>
                    <div class="field">
                    	<a class="button input-file" href="javascript:void(0);">+ 浏览文件<input size="100" type="file" name="file"  /></a>
                    </div>
                </div>
                
                
                  <div class="form-group">
                    <div class="label"><label for="readme">内容</label></div>
                    <div class="field">
                    	<textarea name="keyword.content" class="input" rows="20" cols="50"  >${keyword.content}</textarea>
                    </div>
                </div>
                
                <input type="hidden" name="keyword.id" value="${keyword.id}" />
                <button class="button bg-blue" onclick="return checkForm()">提交</button>
        </form>
  </div>
</div>
                
                
</div>


</body>
</html>